/*
	WeaponPulseBeam.h
	(c)2004 Palestar Inc, Richard Lyle
*/

#ifndef WEAPONPULSEBEAM_H
#define WEAPONPULSEBEAM_H

#include "Game/Constants.h"
#include "Game/GadgetBeamWeapon.h"



//----------------------------------------------------------------------------

class WeaponPulseBeam : public GadgetBeamWeapon
{
public:
	DECLARE_WIDGET_CLASS();

	// NounGadget interface
	Type type() const
	{
		return WEAPON_CLOSE;
	}
	int maxDamage() const
	{
		return (2000 + (level() * 100))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int addValue() const
	{
		return 3000;
	}
	int buildTechnology() const
	{
		return 15;
	}
	int	buildCost() const
	{
		return 50;
	}
	dword buildFlags() const
	{
		return NounPlanet::FLAG_METALS;
	}
	int buildTime() const
	{
		return 290;
	}

	// GadgetWeapon interface
	int energyCost() const
	{
		return 280* enhancementModifier( enhancementSystem(), NounEnhancement::MT_ENERGY );
	}
	int	 energyCharge() const
	{
		return 14* enhancementModifier( enhancementSystem(), NounEnhancement::MT_COOLDOWN );
	}
	int	damage() const
	{
		return (36 + level())* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int	damageRandom() const
	{
		return 12* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int	damageFalloff() const
	{
		return 12;
	}
	int repairRate() const
	{
		return 2;
	}
	dword damageType() const
	{
		return DAMAGE_ENERGY;
	}
	int	duration() const
	{
		return 10;
	}
	float length() const
	{
		return (130.0f + (level() * 8.0f))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_RANGE );
	}
};

//----------------------------------------------------------------------------



#endif

//----------------------------------------------------------------------------
// EOF
